package com.wnx.job.nosql.elasticsearch.document;

import com.wnx.job.modules.pms.model.PmsTag;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.List;

/**
 * @author by wangnaixing
 * @Description
 * @Date 2021/12/22 12:06
 */
@Data
//@Document(indexName = "pms",shards = 1,replicas = 0)
public class EsPost  implements Serializable {

    private static final long serialVersionUID = -1L;
    /**
     * 自增主键
     */
    @Id
    private Long id;
    /**
     * 职位名称
     */
    //@Field(type = FieldType.Keyword)
    private String name;
    /**
     * 受教育程度
     */
    private String education;
    /**
     * 薪资
     */
    private String experience;
    /**
     * 薪资
     */
    private String salary;

    /**
     * 工作内容
     */
   // @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String description;
    /**
     * 招聘人数
     */
    private String count;
    /**
     * 招聘地址
     */
   // @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String address;

    /**
     * 点击次数
     */
    private Integer hit;


    /**
     * 公司ID
     */
    private Long companyId;
    /**
     * 公司Logo
     */
    private String companyLogo;
    /**
     * 公司名称
     */
    private String companyName;
    /**
     * 公司描述
     */
    private String companyDescription;
    /**
     * 职位的标签描述
     */
   // @Field(type =FieldType.Nested)
    private List<PmsTag> tagList;
}
